package com.jymj.dao;

import com.jymj.entity.MovecostEntity;
import com.jymj.entity.gantt.BaseDataEntity;
import com.jymj.entity.gantt.MoveCost;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Mapper
public interface MoveCostDao extends BaseDao<MoveCost> {

    BaseDataEntity getBaseDataById(Map map);

    BaseDataEntity queryByPoint(Map map);

    int updateBilprice(@Param("costId") Integer costId, @Param("pjid") Integer pjid,
                       @Param("bilprice") BigDecimal bilprice);

    MoveCost getTotalInvest(@Param("pjid") Integer pjid, @Param("type") Integer type);

    void updateCost(@Param(value = "list") List<MoveCost> mCList);

    List<MoveCost> getCostRTInvest(Map map);

    MoveCost getChild(MoveCost moveCost);

    int updateMovecost(MoveCost moveCost);

    MoveCost getParent(MoveCost moveCost);

    void updateParent(MoveCost moveCost);

    void updateZtz(MoveCost moveCost);

    void updateJkZtz(MoveCost moveCost);

    List<MovecostEntity> queryList1(String code);

    List<MovecostEntity> queryAll();
}
